package com.crm.mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.crm.model.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.model.dto.UserDTO;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zjd
 * @since 2021-04-01
 */
@DS("slave") //这里是配置数据源注解，默认是master
public interface UserMapper extends BaseMapper<User> {

    public List<UserDTO> findAllUser();

    int delByPhone(@Param("phone") String phone);
}
